import request from '@/utils/request'

// 更衣柜管理
export function getLockerList(data) {
  return request({
    url: '/park/bathroomLocker/list',
    method: 'get',
    data,
    isJson: false,
  })
}

// 更衣区数据
export function getLocationList(data) {
  return request({
    url: '/park/lockerLocation/locationList',
    method: 'get',
    data,
    isJson: true,
  })
}

// 更衣区分组数据
export function getLockerGroupList(data) {
  return request({
    url: '/park/lockerGroup/getList',
    method: 'get',
    data,
    isJson: true,
  })
}

// 更衣柜详情
export function getLockerDetail(data) {
  return request({
    url: '/park/bathroomLocker/' + data,
    method: 'get',
    isJson: true,
  })
}

// 更衣柜删除
export function delLocker(data) {
  return request({
    url: '/park/bathroomLocker/' + data,
    method: 'delete',
    isJson: true,
  })
}

// 更衣柜编辑
export function editLocker(data) {
  return request({
    url: '/park/bathroomLocker',
    method: 'put',
    data,
    isJson: true,
  })
}

// 更衣柜退还
export function netLockerReturn(data) {
  return request({
    url: '/park/bathroomLocker/returnStatus',
    method: 'put',
    data,
    isJson: true,
  })
}

// 更衣柜分配
export function netLockerUpdate(data) {
  return request({
    url: '/park/bathroomLocker/update',
    method: 'put',
    data,
    isJson: true,
  })
}